//
// linktest - simple test of the cbin generated resource
//

#include <stdio.h>

#include "data.h"

int main( int argc, char *argv[] )
{
	// the simple way to do it if you know what you've got
	printf( "test 1 = %s\n", testspace::data::test1 );
	printf( "test 2 = %s\n", testspace::data::test2_foo );
	printf( "test 3 = %s\n", testspace::data::subdir::test3_txt );

	// resource discovery via walking the resource descriptors
	for (testspace::resdesc *r = &testspace::myroot; r; r = r->next)
	{
		printf( "resource %s [%d bytes] @0x%lx\n", r->name, r->size, r->data );
		printf( "data[] = %s\n", r->data );
	}

	printf( "Success!\n" );

	return 0;
}
